package mfuny.ggongal.admin;

import mfuny.ggongal.admin.ask.AskService;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class AskController {
	AskService ask;
	
	public AskController() throws Exception {
		ask = new AskService();
	}
	
	@RequestMapping("/askList.ga")
	public ModelAndView askList() throws Exception {
		return ask.askList();
	}
	
	@RequestMapping("/getAskList.ga")
	public ModelAndView getAskList(String param) throws Exception {
		return ask.getAskList(param);
	}
	
	@RequestMapping("/ask_detailContents.ga")
	public ModelAndView ask_detailContents(int ask_no) throws Exception {
		return ask.ask_detailContents(ask_no);
	}
	
	@RequestMapping("/ask_replyForm.ga")
	public ModelAndView ask_replyForm(int ask_no) throws Exception {
		return ask.ask_replyForm(ask_no);
	}
	
	@RequestMapping("/ask_reply.ga")
	public ModelAndView ask_reply(String jsonParam) throws Exception {
		return ask.ask_reply(jsonParam);
	}
}
